package com.example.f8399.testdemo;

import android.app.Application;

import com.blankj.utilcode.util.Utils;
import com.example.f8399.testdemo.daoEntity.MyObjectBox;

import io.objectbox.BoxStore;

/**
 * Created by f8399 on 2018/7/6.
 */

public class AppContext extends Application {

    private BoxStore mBoxStore;
    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);
        mBoxStore = MyObjectBox.builder().androidContext(AppContext.this).build();
    }

    public BoxStore getBoxStore() {
        return mBoxStore;
    }
}
